﻿using Genius.Brain.Shared.BO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Genius.Brain.Impl.BO
{
    class DialogContext : IDialogContext
    {
        private IDictionary<string, object> _dictionary = new Dictionary<string,object>();

        public string[] Inventors
        {
            get
            {
                return new string[] { "Harald", "Dirk" };
            }
        }

        public string Name { get; set; }

        public bool Has(string key)
        {
            return _dictionary.ContainsKey(key);
        }

        public void Remove(string key)
        {
            _dictionary.Remove(key);
        }

        public void Set(string key, object value)
        {
            _dictionary[key] = value;
        }

        public T Value<T>(string key)
        {
            return (T)_dictionary[key];
        }
    }
}
